ContentEgg\application\helpers\TemplateHelper D

Total Complexity 755
Dependencies 15
Dependents 19
Total lines 3,417
Lines of code 2,616
Logical lines of code 1,487
Comment lines 38
Methods 180
Properties 13

Methods 180

Method Rating Maintainability Complexity Lines of code
isVisible()
D
33 52 70
sortByPrice()
D
32 43 89
getMerchantImageUrl()
C
38 24 67
getItemsPriceHistory()
B
36 22 79
replacePatterns()
A
44 12 52
getMerhantName()
A
48 13 32
filterData()
A
48 11 35
isVisiblePriceUpdate()
A
55 12 17
chartjs()
A
34 4 136
getItemPriceHistory()
A
45 9 42
ratingStars()
A
52 10 23
priceHistoryMorrisChart()
A
42 7 52
getStockStatusStr()
A
56 9 17
getImageSizesRatio()
A
50 8 29
generateStaticRatings()
A
51 8 27
getLastUpdateFormattedAmazon()
A
52 8 25
getOptimizedImage()
A
56 8 16
getGallery()
S
50 7 30
badge()
S
49 7 28
newUsedPrice()
S
59 8 12
button()
S
50 7 27
number()
S
50 7 27
getMerchantLogoUrl()
S
51 7 25
getShopCoupons()
S
53 7 22
getTimeLeft()
S
48 6 35
rowCols()
S
54 7 20
getMerchnatInfo()
S
52 6 27
truncate()
S
52 6 26
getRatingValueScale10()
S
60 7 11
getShopInfo()
S
54 6 20
getLastUpdate()
S
58 6 16
getGroupsList()
S
52 5 28
isModuleDataExist()
S
60 6 13
printShopInfoModal()
S
51 5 27
colsOrder()
S
60 6 12
isVisibleDisclaimer()
S
61 6 11
printShopCouponsModal()
S
51 5 25
prepareParamHideVisible()
S
47 4 39
getCustomLogo()
S
55 5 22
generateAddAllToCartUrl()
S
55 5 19
getGtagClickEvent()
S
56 5 17
selectItemByDescription()
S
57 5 17
getLastUpdateFormatted()
S
58 5 15
viewMorrisChart()
S
49 4 30
getAmazonLink()
S
60 5 14
getMerchantIconUrl()
S
58 5 14
shippingCost()
S
57 5 14
getStockStatusClass()
S
61 5 12
getStockStatusClass5()
S
61 5 12
titleWithNumber()
S
51 4 27
colorMode()
S
61 5 11
couponsOffcanvas()
S
52 4 24
shopInfoOffcanvas()
S
52 4 24
getDaysAgo()
S
55 4 21
sortByBadgeAndPriority()
S
55 4 20
btnText()
S
56 4 20
getShopsList()
S
57 4 18
formatPriceCurrency()
S
59 4 15
filterDataByModule()
S
59 4 15
filterByGroup()
S
59 4 15
adjustBrightness()
S
57 4 15
findAmazonLocales()
S
59 4 15
getColOrder()
S
63 5 10
sortByNumber()
S
60 4 13
getCommonCurrencyCode()
S
61 4 12
eanParamPrepare()
S
62 4 12
displayImage()
S
60 4 12
logo()
S
60 4 12
priceChangesProducts()
S
56 3 18
printShopInfoPopover()
S
55 3 18
getMerchantLogoDir()
S
59 3 16
title()
S
58 3 16
formatDate()
S
67 4 7
getNumberFromTitle()
S
63 4 10
isNumbered()
S
67 4 8
printRel()
S
60 3 15
borderColor()
S
59 3 15
isAmazonPriceExists()
S
66 4 8
number_format_i18n()
S
61 3 13
priceUpdateAmazon()
S
60 3 13
filterDataByType()
S
61 3 12
mergeData()
S
63 3 12
mergeAll()
S
63 3 12
buildTagParams()
S
61 3 12
border()
S
61 3 12
prime()
S
61 3 11
linkAttr()
S
62 3 11
coupons()
S
61 3 11
shopInfo()
S
61 3 11
ratingRing()
S
52 2 21
dateFormatFromGmtAmazon()
S
65 3 9
getNameFromDomain()
S
64 3 9
mergeAndSort()
S
65 3 9
getPostDisclimerText()
S
69 3 6
getBlockDisclimerText()
S
69 3 6
getAmazonPriceDisclimerText()
S
64 3 9
getCashbackStr()
S
67 3 7
printRating()
S
65 3 8
printShopInfo()
S
64 3 9
printShopCoupons()
S
67 3 7
selectItemByBadge()
S
67 3 8
convertRatingScale()
S
66 3 8
convertRatingScale10()
S
68 3 6
isPriceAvailable()
S
68 3 8
icon()
S
65 3 8
cashback()
S
68 3 7
titleTag()
S
66 3 8
addShopInfoOffcanvases()
S
68 3 7
addCouponOffcanvases()
S
68 3 7
ratingProgress()
S
58 2 14
getChance()
S
61 2 13
badge2()
S
61 2 13
badge3()
S
61 2 13
priceHistoryPrices()
S
61 2 12
badge1()
S
61 2 12
getAssociateTagForAmazonLocale()
S
64 2 11
printMerchantInfo()
S
63 2 11
formatDatetime()
S
64 2 10
dateFormatFromGmt()
S
64 2 9
priceHistoryMax()
S
67 2 7
priceHistoryMin()
S
67 2 7
priceHistorySinceDate()
S
68 2 7
getMaxPriceItem()
S
72 2 5
getMinPriceItem()
S
72 2 5
compareByBadgeAndPriority()
S
67 2 7
sortAllByPrice()
S
68 2 7
getCurrentUserEmail()
S
69 2 7
getPrivacyUrl()
S
65 2 10
isCashbackTrakerActive()
S
66 2 10
getButtonColor()
S
69 2 7
getPriceColor()
S
69 2 7
printProgressRing()
S
64 2 8
tabsType()
S
69 2 6
oldPrice()
S
71 2 5
price()
S
71 2 5
priceClass()
S
75 2 4
merchant()
S
75 2 4
description()
S
72 2 5
stockStatus()
S
64 2 9
imgRatio()
S
67 2 7
promo()
S
72 2 5
arrayToTagParameters()
S
64 2 10
isVisibleDisclaimerOrPriceUpdate()
S
77 2 3
conditionClass()
S
70 2 6
currencyTyping()
S
80 1 3
price_format_i18n()
S
77 1 3
splitAttributeName()
S
78 1 3
isPriceAlertAllowed()
S
78 1 3
getCurrencyPos()
S
80 1 3
getCurrencySymbol()
S
80 1 3
getCurrencyName()
S
80 1 3
getMerhantLogoUrl()
S
78 1 3
getMerhantIconUrl()
S
78 1 3
getMerchantName()
S
78 1 3
getBlankImg()
S
79 1 3
fixNumberedTitle()
S
72 1 5
buyNowBtnText()
S
77 1 3
couponBtnText()
S
77 1 3
getAmazonDisclaimer()
S
80 1 3
printAmazonDisclaimer()
S
78 1 3
filterItemsByGroup()
S
70 1 6
generateGlobalId()
S
79 1 3
getRelValue()
S
75 1 4
getButtonColorHower()
S
78 1 3
__()
S
80 1 3
esc_html_e()
S
79 1 3
t()
S
80 1 3
currencyCode()
S
79 1 3
deliveryAtCheckout()
S
79 1 3
subtitle()
S
78 1 3
openATag()
S
73 1 5
closeATag()
S
81 1 3
link()
S
71 1 5
disclaimer()
S
80 1 3
getLowestPriceItem()
S
73 1 5
getPriceHistoryLowestItem()
S
80 1 3
getPriceHistoryHighestItem()
S
80 1 3
getPriceHistorySince()
S
80 1 3
getDeliveryAtCheckout()
S
80 1 3
minifyBasic()
S
74 1 4